﻿using Nes.Core;

namespace NesCore.Test
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");

            var nesByte = Utils.ReadFile("D:\\Dev\\mygit\\nes4net\\devtool\\debug\\nestest.nes");
            INes nes = new Nes.Core.Nes(nesByte, new NesOption 
            {
                SampleRate = 1000,
            });
            nes.CPU.Reset();
            nes.CPU.Register.PC = 0xC000;
            nes.CPU.Register.SetPFlag(P_Flag.I, true);
            while (true)
            {
                nes.CPU.Clock();
            }
        }
    }
}
